window.__require = function e(t, r, n) {
function o(c, i) {
if (!r[c]) {
if (!t[c]) {
var a = c.split("/");
a = a[a.length - 1];
if (!t[a]) {
var s = "function" == typeof __require && __require;
if (!i && s) return s(a, !0);
if (l) return l(a, !0);
throw new Error("Cannot find module '" + c + "'");
}
c = a;
}
var u = r[c] = {
exports: {}
};
t[c][0].call(u.exports, function(e) {
return o(t[c][1][e] || e);
}, u, u.exports, e, t, r, n);
}
return r[c].exports;
}
for (var l = "function" == typeof __require && __require, c = 0; c < n.length; c++) o(n[c]);
return o;
}({
HelloWorld: [ function(e, t) {
"use strict";
cc._RF.push(t, "280c3rsZJJKnZ9RqbALVwtK", "HelloWorld");
cc.Class({
extends: cc.Component,
properties: {
label: {
default: null,
type: cc.Label
},
text: "Hello, World!"
},
onLoad: function() {
this.label.string = this.text;
},
onRewards: function() {
console.log("llh onRewards");
var e = jsb.reflection.callStaticMethod(!1, "entry/src/main/ets/interface/AdsInterface", "entry/loadRewardAds", "");
console.log("llh ret: " + e);
cc.resources.load("RewardResultPlane", function(t, r) {
var n = cc.instantiate(r);
n.getChildByName("RewardResult").getComponent(cc.Label).string = e ? "获取激励成功" : "获取激励失败";
cc.director.getScene().getChildByName("Canvas").addChild(n);
setTimeout(function() {
n.removeFromParent();
}, 2e3);
});
},
update: function() {}
});
cc._RF.pop();
}, {} ]
}, {}, [ "HelloWorld" ]);